﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TEST.aspx.cs" Inherits="WebApplication.TEST" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <link href="Styles/Site.css" rel="stylesheet" type="text/css" />
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Label Text="text" ID="lblStatus" runat="server" />
        <asp:DataList ID="dlDSSanPham" Visible="true" runat="server" RepeatColumns="4">
            <ItemTemplate>
                <div class="sanpham">
                    <img src='<%# BLL.LinkBLL.ToHinhAnhSanPham(Eval("AnhXemTruoc").ToString()) %>' alt="abc" />
                    <div class="chitiet">
                        <a class="tensp" href='<%#BLL.LinkBLL.ToSanPham(Eval("IDSP").ToString()) %>'>
                            <%#HttpUtility.HtmlEncode(Eval("TenSP").ToString()) %>
                        </a>
                        <p class="gia">
                            <%#HttpUtility.HtmlEncode(Eval("Gia", "{0:0,0 VND}").ToString())%>
                        </p>
                        <p class="themvaogiohang bt">
                            <a href='<%#BLL.LinkBLL.ToThemVaoGioHang(Eval("IDSP").ToString()) %>'>Mua</a>
                        </p>
                        
                        <p class="xemchitiet bt">
                            <a href='<%#BLL.LinkBLL.ToSanPham(Eval("IDSP").ToString()) %>'>Chi Tiết</a>
                        </p>
                    </div>
                </div>
            </ItemTemplate>
        </asp:DataList>
    </div>
    </form>
</body>
</html>
